package com.lixn.homework.util;

import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 分页帮助类，当查询多条数据时可以使用
 * @param <T>
 */
public class PageUtils<T> {
    private List<T> list;
    private PageInfo<T> pageInfo;

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public PageInfo<T> getPageInfo() {
        return pageInfo;
    }

    public void setPageInfo(PageInfo<T> pageInfo) {
        this.pageInfo = pageInfo;
    }

    @Override
    public String toString() {
        return "PageUtils{" +
                "list=" + list +
                ", pageInfo=" + pageInfo +
                '}';
    }
}
